import Vue from 'vue'
import Router from 'vue-router'
import { qiankunWindow } from 'vite-plugin-qiankun/dist/helper'

// 解决多次点击同一菜单报错的问题
const routerPush = Router.prototype.push
Router.prototype.push = function push(location) {
  return routerPush.call(this, location).catch((error) => error)
}

Vue.use(Router)
/*let baseRouter = [
  // 首页
  {
    path: '/main',
    name: 'main',
    meta: { tabName: '首页' },
    component: () => import('@component/main')
  },
  // 个人中心
  {
    path: '/userCenter',
    name: 'userCenter',
    meta: { tabName: '个人中心' },
    component: () => import('@component/userCenter')
  },
  //~~~~~~~~~~~~~~~~~~系统管理 begin~~~~~~~~~~~~~~
  // 系统管理-用户管理
  {
    path: '/system/user/userList',
    name: 'userList',
    meta: { tabName: '用户管理' },
    component: () => import('@component/system/user/userList')
  },
  // 系统管理-用户管理 - 二级页面（详情）
  {
    path: '/system/user/userDetail/:id',
    name: 'userDetail',
    meta: { tabName: '用户管理/修改用户' },
    component: () => import('@component/system/user/userDetail') // 用户管理
  },
  // 系统管理-角色管理
  {
    path: '/system/roles/rolesList',
    name: 'rolesList',
    meta: { tabName: '角色管理' },
    component: () => import('@component/system/roles/rolesList')
  },
  // 系统管理-角色管理 - 二级页面
  {
    path: '/system/roles/setUser/setUserList/:id',
    name: 'setUser',
    meta: { tabName: '角色管理/分配用户' },
    component: () => import('@component/system/roles/setUser/setUserList')
  },
  // 系统管理-菜单管理
  {
    path: '/system/menu',
    name: 'menuList',
    meta: { tabName: '菜单管理' },
    component: () => import('@component/system/menu')
  },
  // 系统管理-部门管理
  {
    path: '/system/department',
    name: 'department',
    meta: { tabName: '部门管理' },
    component: () => import('@component/system/department')
  },
  // 系统管理-岗位管理
  {
    path: '/system/post',
    name: 'post',
    meta: { tabName: '岗位管理' },
    component: () => import('@component/system/post')
  },
  // 系统管理-字典管理
  {
    path: '/system/dictionaries/indexList',
    name: 'dIndexList',
    meta: { tabName: '字典管理' },
    component: () => import('@component/system/dictionaries/indexList')
  },
  // 系统管理-字典管理 - 二级页面( 字典数据)
  {
    path: '/system/dictionaries/secondList/:id',
    name: 'dSecondList',
    meta: { tabName: '字典管理/字典数据' },
    component: () => import('@component/system/dictionaries/secondList')
  },
  // 系统管理-参数设置
  {
    path: '/system/parameter',
    name: 'parameter',
    meta: { tabName: '参数设置' },
    component: () => import('@component/system/parameter')
  },
  // 系统管理-操作日志
  {
    path: '/system/logManage/operLog',
    name: 'operLog',
    meta: { tabName: '操作日志' },
    component: () => import('@component/system/logManage/operLog')
  },
  // 系统管理-登录日志
  {
    path: '/system/logManage/loginLog',
    name: 'logManage',
    meta: { tabName: '登录日志' },
    component: () => import('@component/system/logManage/loginLog')
  },
  //~~~~~~~~~~~~~~~~~~系统管理 end~~~~~~~~~~~~~~
  //~~~~~~~~~~~~~~~~~~ app设置 bengin~~~~~~~~~~~~~~
  // app设置-频道设置
  {
    path: '/appSetting/contentTag/list',
    name: 'channelSetList',
    meta: { tabName: '频道设置' },
    component: () => import('@component/appSetting/contentTags/contentList')
  },
  // app设置-频道管理 -二级页面(详情列表)
  {
    path: '/appSetting/contentTags/lifeContents/lifeContentList/:id',
    name: 'channelSet',
    meta: { tabName: '频道设置/详情列表' },
    component: () =>
      import('@component/appSetting/contentTags/lifeContents/lifeContentList')
  },
  // app设置-评论设置
  {
    path: '/system/settings',
    name: 'appSetting',
    meta: { tabName: 'app设置' },
    component: () => import('@component/system/appSetting')
  },
  //~~~~~~~~~~~~~~~~~~ app设置 end~~~~~~~~~~~~~~
  //~~~~~~~~~~~~~~~~~~ 关注管理 begin~~~~~~~~~~~~~~
  // 关注管理-关注推荐
  {
    path: '/hotManagement/hotRecommend/hotList',
    name: 'hotRecommend',
    meta: { tabName: '关注热门推荐' },
    component: () => import('@component/hotManagement/hotRecommend/hotList')
  },
  //~~~~~~~~~~~~~~~~~~ 关注管理 end~~~~~~~~~~~~~~
  //~~~~~~~~~~~~~~~~~~ 热门管理 begin~~~~~~~~~~~~~~
  // 热门管理-置顶排序管理
  {
    path: '/placingOrder/taskSort',
    name: 'taskSort',
    meta: { tabName: '作业作品生活置顶排序' },
    component: () => import('@component/placingOrder/taskSort')
  },
  // 热门管理-小视频观看排序管理
  {
    path: '/placingOrder/videoSort',
    name: 'videoSort',
    meta: { tabName: '小视频观看排序管理' },
    component: () => import('@component/placingOrder/videoSort')
  },
  //~~~~~~~~~~~~~~~~~~ 热门管理 end~~~~~~~~~~~~~~
  //~~~~~~~~~~~~~~~~~~ 作品管理 begin~~~~~~~~~~~~~~
  //作品管理-作品维护
  {
    path: '/workManagement/workPreserve/workPreserveList',
    name: 'workPList',
    meta: { tabName: '作品管理/作品维护' },
    component: () =>
      import('@component/workManagement/workPreserve/workPreserveList') // 作品维护/列表页
  },
  //作品管理-作品维护 -  二级页面（点赞列表）
  {
    path: '/workManagement/common/upList/:id',
    name: 'workUpList',
    meta: { tabName: '作品管理/作品维护/点赞列表' },
    component: () => import('@component/workManagement/common/upList')
  },
  //作品管理-作品维护 -  二级页面（评论列表）
  {
    path: '/workManagement/common/commentList/:id',
    name: 'workCommentList',
    meta: { tabName: '作品管理/作品维护/评论列表' },
    component: () => import('@component/workManagement/common/commentList')
  },
  //作品管理-作品维护 -  三级页面（评论回复列表）
  {
    path: '/workManagement/common/commentBackList/:id',
    name: 'workCBackList',
    meta: { tabName: '作品管理/作品维护/评论回复列表' },
    component: () => import('@component/workManagement/common/commentBackList')
  },
  // 作品管理-我的发布
  {
    path: '/workManagement/workMine/workMineList',
    name: 'workMineList',
    meta: { tabName: '作品管理/我的发布' },
    component: () => import('@component/workManagement/workMine/workMineList')
  },
  // 作品管理-我的发布  - 二级页面（点赞列表）
  {
    path: '/workManagement/common/upList/:id',
    name: 'workMUpList',
    meta: { tabName: '作品管理/我的发布/点赞列表' },
    component: () => import('@component/workManagement/common/upList')
  },
  // 作品管理-我的发布  - 二级页面（评论列表）
  {
    path: '/workManagement/common/commentList/:id',
    name: 'workMCommentList',
    meta: { tabName: '作品管理/我的发布/评论列表' },
    component: () => import('@component/workManagement/common/commentList')
  },
  //作品管理-我的发布 -  三级页面（评论回复列表）
  {
    path: '/workManagement/common/commentBackList/:id',
    name: 'workMCBackList',
    meta: { tabName: '作品管理/我的发布/评论回复列表' },
    component: () => import('@component/workManagement/common/commentBackList')
  },
  // 作品管理- 小视频维护
  {
    path: '/videoManagement/videoWorkPreserve/videoWorkPreserveList',
    name: 'videoWorkPList',
    meta: { tabName: '作品小视频维护' },
    component: () =>
      import(
        '@component/videoManagement/videoWorkPreserve/videoWorkPreserveList'
      )
  },
  // 作品管理- 小视频维护  - 二级页面（点赞列表）
  {
    path: '/videoManagement/commonWork/upList/:id',
    name: 'videoWorkUpList',
    meta: { tabName: '作品小视频维护/点赞列表' },
    component: () => import('@component/videoManagement/commonWork/upList') // 作品小视频维护/点赞列表
  },
  // 作品管理- 小视频维护  - 二级页面（评论列表）
  {
    path: '/videoManagement/commonWork/commentList/:id',
    name: 'videoWorkCommentList',
    meta: { tabName: '作品小视频维护/评论列表' },
    component: () => import('@component/videoManagement/commonWork/commentList')
  },
  // 作品管理- 小视频维护  - 三级页面（评论回复列表）
  {
    path: '/videoManagement/commonWork/commentBackList/:id',
    name: 'videoWorkCBackList',
    meta: { tabName: '作品小视频维护/评论回复列表' },
    component: () =>
      import('@component/videoManagement/commonWork/commentBackList')
  },
  // 作品管理- 小视频发布
  {
    path: '/videoManagement/videoWorkMine/videoWorkMineList',
    name: 'videoWorkMList',
    meta: { tabName: '作品小视频发布' },
    component: () =>
      import('@component/videoManagement/videoWorkMine/videoWorkMineList')
  },
  // 作品管理- 小视频发布  - 二级页面（点赞列表）
  {
    path: '/videoManagement/commonWork/upList/:id',
    name: 'videoWorkMUpList',
    meta: { tabName: '作品小视频发布/点赞列表' },
    component: () => import('@component/videoManagement/commonWork/upList')
  },
  // 作品管理- 小视频发布  - 二级页面（评论列表）
  {
    path: '/videoManagement/commonWork/commentList/:id',
    name: 'videoWorkMCommentList',
    meta: { tabName: '作品小视频发布/评论列表' },
    component: () => import('@component/videoManagement/commonWork/commentList')
  },
  // 作品管理- 小视频发布  - 三级页面（评论回复列表）
  {
    path: '/videoManagement/commonWork/commentBackList/:id',
    name: 'videoWorkMBackList',
    meta: { tabName: '作品小视频发布/评论回复列表' },
    component: () =>
      import('@component/videoManagement/commonWork/commentBackList')
  },
  // 作品管理- 内容审核
  {
    path: '/contentCheck/workCheck',
    name: 'workCheck',
    meta: { tabName: '作品内容审核' },
    component: () => import('@component/contentCheck/workCheck')
  },
  //作品管理- 评论审核
  {
    path: '/commentCheck/workCommentCheck/workCheckList',
    name: 'workCheckList',
    meta: { tabName: '作品评论审核' },
    component: () =>
      import('@component/commentCheck/workCommentCheck/workCheckList')
  },
  //作品管理- 评论审核- 二级页面（评论列表）
  {
    path: '/commentCheck/workCommentCheck/commentList/:id',
    name: 'workCheckComment',
    meta: { tabName: '作品评论审核/评论列表' },
    component: () =>
      import('@component/commentCheck/workCommentCheck/commentList')
  },
  //作品管理- 评论审核- 三级页面（评论回复列表）
  {
    path: '/commentCheck/workCommentCheck/commentBackList/:id/:topicId',
    name: 'workCheckReply',
    meta: { tabName: '作品评论审核/评论回复列表' },
    component: () =>
      import('@component/commentCheck/workCommentCheck/commentBackList') // 作品评论审核-评论-评论回复列表页
  },
  //~~~~~~~~~~~~~~~~~~ 作品管理 end~~~~~~~~~~~~~~
  //~~~~~~~~~~~~~~~~~~ 生活管理 begin~~~~~~~~~~~~~~
  // 生活管理-生活维护
  {
    path: '/lifeManagement/lifePreserve/lifePreserveList',
    name: 'lifePList',
    meta: { tabName: '生活维护' },
    component: () =>
      import('@component/lifeManagement/lifePreserve/lifePreserveList')
  },
  // 生活管理- 生活维护  - 二级页面（点赞列表）
  {
    path: '/lifeManagement/common/upList/:id',
    name: 'lifeUpList',
    meta: { tabName: '生活维护/点赞列表' },
    component: () => import('@component/lifeManagement/common/upList')
  },
  // 生活管理- 生活维护  - 二级页面（评论列表）
  {
    path: '/lifeManagement/common/commentList/:id',
    name: 'lifeCommentList',
    meta: { tabName: '生活维护/评论列表' },
    component: () => import('@component/lifeManagement/common/commentList')
  },
  // 生活管理- 生活维护  - 三级页面（评论回复列表）
  {
    path: '/lifeManagement/common/commentBackList/:id',
    name: 'lifeCBackList',
    meta: { tabName: '生活维护/评论回复列表' },
    component: () => import('@component/lifeManagement/common/commentBackList')
  },
  // 生活管理- 我的发布
  {
    path: '/lifeManagement/lifeMine/lifeMineList',
    name: 'lifeMList',
    meta: { tabName: '生活管理/我的发布' },
    component: () => import('@component/lifeManagement/lifeMine/lifeMineList')
  },
  // 生活管理- 我的发布  - 二级页面（点赞列表）
  {
    path: '/lifeManagement/common/upList/:id',
    name: 'lifeMUpList',
    meta: { tabName: '生活管理/我的发布/点赞列表' },
    component: () => import('@component/lifeManagement/common/upList')
  },
  // 生活管理- 我的发布  - 二级页面（评论列表）
  {
    path: '/lifeManagement/common/commentList/:id',
    name: 'lifeMCommentList',
    meta: { tabName: '生活管理/我的发布/评论列表' },
    component: () => import('@component/lifeManagement/common/commentList')
  },
  // 生活管理- 我的发布  - 三级页面（评论回复列表）
  {
    path: '/lifeManagement/common/commentBackList/:id',
    name: 'lifeMCBackList',
    meta: { tabName: '生活管理/我的发布/评论回复列表' },
    component: () => import('@component/lifeManagement/common/commentBackList')
  },
  // 生活管理-  生活小视频维护
  {
    path: '/videoManagement/videoLifePreserve/videoLifePreserveList',
    name: 'videoLifePList',
    meta: { tabName: '生活小视频维护' },
    component: () =>
      import(
        '@component/videoManagement/videoLifePreserve/videoLifePreserveList'
      )
  },
  // 生活管理-  生活小视频维护  - 二级页面（点赞列表）
  {
    path: '/videoManagement/commonLife/upList/:id',
    name: 'videoLifeUpList',
    meta: { tabName: '生活小视频维护/点赞列表' },
    component: () => import('@component/videoManagement/commonLife/upList')
  },
  // 生活管理-  生活小视频维护  - 二级页面（评论列表）
  {
    path: '/videoManagement/commonLife/commentList/:id',
    name: 'videoLifeCommentList',
    meta: { tabName: '生活小视频维护/评论列表' },
    component: () => import('@component/videoManagement/commonLife/commentList')
  },
  // 生活管理-  生活小视频维护  - 三级页面（评论回复列表）
  {
    path: '/videoManagement/commonLife/commentBackList/:id',
    name: 'videoLifeCBackList',
    meta: { tabName: '生活小视频维护/评论回复列表' },
    component: () =>
      import('@component/videoManagement/commonLife/commentBackList')
  },
  // 生活管理-  生活小视频发布
  {
    path: '/videoManagement/videoLifeMine/videoLifeMineList',
    name: 'videoLifeMList',
    meta: { tabName: '生活小视频发布' },
    component: () =>
      import('@component/videoManagement/videoLifeMine/videoLifeMineList') // 作品小视频维护/列表页
  },
  // 生活管理-  生活小视频发布  - 二级页面（点赞列表）
  {
    path: '/videoManagement/commonLife/upList/:id',
    name: 'videoLifeMUpList',
    meta: { tabName: '生活小视频发布/点赞列表' },
    component: () => import('@component/videoManagement/commonLife/upList')
  },
  // 生活管理-  生活小视频发布  - 二级页面（评论列表）
  {
    path: '/videoManagement/commonLife/commentList/:id',
    name: 'videoLifeMCommentList',
    meta: { tabName: '生活小视频发布/评论列表' },
    component: () => import('@component/videoManagement/commonLife/commentList')
  },
  // 生活管理-  生活小视频发布  - 三级页面（评论回复列表）
  {
    path: '/videoManagement/commonLife/commentBackList/:id',
    name: 'videoLifeMBackList',
    meta: { tabName: '生活小视频发布/评论回复列表' },
    component: () =>
      import('@component/videoManagement/commonLife/commentBackList')
  },
  // 生活管理- 内容审核
  {
    path: '/contentCheck/lifeCheck',
    name: 'lifeCheck',
    meta: { tabName: '生活内容审核' },
    component: () => import('@component/contentCheck/lifeCheck')
  },
  // 生活管理- 评论审核
  {
    path: '/commentCheck/lifeCommentCheck/lifeCheckList',
    name: 'lifeCheckList',
    meta: { tabName: '生活评论审核' },
    component: () =>
      import('@component/commentCheck/lifeCommentCheck/lifeCheckList')
  },
  // 生活管理- 评论审核- 二级页面（评论列表）
  {
    path: '/commentCheck/lifeCommentCheck/commentList/:id',
    name: 'lifeComment',
    meta: { tabName: '生活评论审核/评论列表' },
    component: () =>
      import('@component/commentCheck/lifeCommentCheck/commentList')
  },
  // 生活管理- 评论审核- 三级页面（评论列表）
  {
    path: '/commentCheck/lifeCommentCheck/commentBackList/:id/:topicId',
    name: 'lifeCommentB',
    meta: { tabName: '生活评论审核/评论回复列表' },
    component: () =>
      import('@component/commentCheck/lifeCommentCheck/commentBackList')
  },
  //~~~~~~~~~~~~~~~~~~ 生活管理 end~~~~~~~~~~~~~~
  //~~~~~~~~~~~~~~~~~~ 作业管理 begin~~~~~~~~~~~~~~
  // 作业管理-作业维护
  {
    path: '/jobManagement/jobPreserve/jobPreserveList',
    name: 'jobPList',
    meta: { tabName: '作业管理/作业维护' },
    component: () =>
      import('@component/jobManagement/jobPreserve/jobPreserveList')
  },
  // 作业管理-作业维护  - 二级页面（点赞列表）
  {
    path: '/jobManagement/common/upList/:id',
    name: 'jobUpList',
    meta: { tabName: '作业管理/作业维护/点赞列表' },
    component: () => import('@component/jobManagement/common/upList')
  },
  // 作业管理-作业维护  - 二级页面（评论列表）
  {
    path: '/jobManagement/common/commentList/:id',
    name: 'jobCommentList',
    meta: { tabName: '作业管理/作业维护/评论列表' },
    component: () => import('@component/jobManagement/common/commentList')
  },
  // 作业管理-作业维护  - 三级页面（评论列表）
  {
    path: '/jobManagement/common/commentBackList/:id',
    name: 'jobCBackList',
    meta: { tabName: '作业管理/作业维护/评论回复列表' },
    component: () => import('@component/jobManagement/common/commentBackList')
  },
  //作业管理-我的发布
  {
    path: '/jobManagement/jobMine/jobMineList',
    name: 'jobMineList',
    meta: { tabName: '作业管理/我的发布' },
    component: () => import('@component/jobManagement/jobMine/jobMineList')
  },
  //作业管理-我的发布  - 二级页面（点赞列表）
  {
    path: '/jobManagement/common/upList/:id',
    name: 'jobMUpList',
    meta: { tabName: '作业管理/我的发布/点赞列表' },
    component: () => import('@component/jobManagement/common/upList')
  },
  //作业管理-我的发布  - 二级页面（评论列表）
  {
    path: '/jobManagement/common/commentList/:id',
    name: 'jobMCommentList',
    meta: { tabName: '作业管理/我的发布/评论列表' },
    component: () => import('@component/jobManagement/common/commentList') // 作业管理/评论列表
  },
  //作业管理-我的发布  - 三级页面（评论回复列表）
  {
    path: '/jobManagement/common/commentBackList/:id',
    name: 'jobMCBackList',
    meta: { tabName: '作业管理/我的发布/评论回复列表' },
    component: () => import('@component/jobManagement/common/commentBackList') // 作业管理/评论列表
  },
  // 作业管理-内容审核
  {
    path: '/contentCheck/jobCheck',
    name: 'jobCheck',
    meta: { tabName: '作业内容审核' },
    component: () => import('@component/contentCheck/jobCheck')
  },
  // 作业管理-评论审核
  {
    path: '/commentCheck/jobCommentCheck/jobCommentCheckList',
    name: 'jobCommentCheckList',
    meta: { tabName: '作业评论审核' },
    component: () =>
      import('@component/commentCheck/jobCommentCheck/jobCommentCheckList')
  },
  // 作业管理-评论审核  - 二级页面（评论列表）
  {
    path: '/commentCheck/jobCommentCheck/jobCommentCheckSecondList/:id',
    name: 'jobCommentCheckSecondList',
    meta: { tabName: '作业评论审核/评论列表' },
    component: () =>
      import(
        '@component/commentCheck/jobCommentCheck/jobCommentCheckSecondList'
      )
  },
  // 作业管理-评论审核  - 三级页面（回复列表）
  {
    path: '/commentCheck/jobCommentCheck/jobCommentCheckReplyList/:id/:topicId',
    name: 'jobCommentCheckReplyList',
    meta: { tabName: '作业评论审核/回复列表' },
    component: () =>
      import('@component/commentCheck/jobCommentCheck/jobCommentCheckReplyList')
  },
  //~~~~~~~~~~~~~~~~~~ 作业管理 end~~~~~~~~~~~~~~
  //~~~~~~~~~~~~~~~~~~ 活动管理 begin~~~~~~~~~~~~~~
  //活动管理-官方征集自评活动
  {
    path: '/activeManagement/selfAssessment/officialList',
    name: 'managementList',
    meta: { tabName: '官方征集自评活动' },
    component: () =>
      import('@component/activeManagement/selfAssessment/officialList')
  },
  //活动管理-官方征集自评活动 -二级页面 （创建活动）
  {
    path: '/activeManagement/selfAssessment/createActivities/:id',
    name: 'createActivities',
    meta: { tabName: '官方征集自评活动/创建活动' },
    component: () =>
      import('@component/activeManagement/selfAssessment/createActivities')
  },
  //活动管理-官方征集自评活动 -二级页面 （编辑活动）
  {
    path: '/activeManagement/selfAssessment/createActivities/:id',
    name: 'editActivities',
    meta: { tabName: '官方征集自评活动/编辑' },
    component: () =>
      import('@component/activeManagement/selfAssessment/createActivities')
  },
  //活动管理-官方征集自评活动 -二级页面 （查看详情）
  {
    path: '/activeManagement/selfAssessment/createActivities/:id',
    name: 'checkActivities',
    meta: { tabName: '官方征集自评活动/查看' },
    component: () =>
      import('@component/activeManagement/selfAssessment/createActivities')
  },
  //活动管理-投票活动
  {
    path: '/activeManagement/votingActivity/votingList',
    name: 'votingActivityList',
    meta: { tabName: '投票活动' },
    component: () =>
      import('@component/activeManagement/votingActivity/votingList')
  },
  //活动管理-投票活动 -二级页面 （创建活动）
  {
    path: '/activeManagement/votingActivity/createActivities/:id',
    name: 'createVotingActivities',
    meta: { tabName: '投票活动/创建活动' },
    component: () =>
      import('@component/activeManagement/votingActivity/createActivities')
  },
  //活动管理-投票活动 -二级页面 （编辑活动）
  {
    path: '/activeManagement/votingActivity/createActivities/:id',
    name: 'editVotingActivities',
    meta: { tabName: '投票活动/编辑' },
    component: () =>
      import('@component/activeManagement/votingActivity/createActivities')
  },
  //活动管理-投票活动 -二级页面 （查看详情）
  {
    path: '/activeManagement/votingActivity/createActivities/:id',
    name: 'checkVotingActivities',
    meta: { tabName: '投票活动/查看' },
    component: () =>
      import('@component/activeManagement/votingActivity/createActivities')
  },
  //活动管理-排行榜活动
  {
    path: '/activeManagement/rankingList/rankingList',
    name: 'rankingLiList',
    meta: { tabName: '排行榜活动' },
    component: () =>
      import('@component/activeManagement/rankingList/rankingList') // 排行榜活动/列表页
  },
  //活动管理-排行榜活动 -二级页面 （创建活动）
  {
    path: '/activeManagement/rankingList/createActivities/:id',
    name: 'createRankingActivities',
    meta: { tabName: '排行榜活动/创建活动' },
    component: () =>
      import('@component/activeManagement/rankingList/createActivities')
  },
  //活动管理-排行榜活动 -二级页面 （编辑活动）
  {
    path: '/activeManagement/rankingList/createActivities/:id',
    name: 'editRankingActivities',
    meta: { tabName: '排行榜活动/编辑' },
    component: () =>
      import('@component/activeManagement/rankingList/createActivities')
  },
  //活动管理-排行榜活动 -二级页面 （查看详情）
  {
    path: '/activeManagement/rankingList/createActivities/:id',
    name: 'checkRankingActivities',
    meta: { tabName: '排行榜活动/查看' },
    component: () =>
      import('@component/activeManagement/rankingList/createActivities')
  },
  // 活动管理-投票维护
  {
    path: '/activeManagement/voteMaintain/voteMaintainList',
    name: 'voteMaintainList',
    meta: { tabName: '投票维护' },
    component: () =>
      import('@component/activeManagement/voteMaintain/voteMaintainList')
  },
  // 活动管理-发布审核
  {
    path: '/activeManagement/active/publishList',
    name: 'publishList',
    meta: { tabName: '活动管理/发布审核' },
    component: () => import('@component/activeManagement/active/publishList')
  },
  // 活动管理- 运营审核
  {
    path: '/operate/active/activeList',
    name: 'activeList',
    meta: { tabName: '活动审核/运营审核' },
    component: () => import('@component/operate/active/activeList')
  },
  //活动管理-活动帖子管理-帖子维护
  {
    path: '/activeManagement/postManagement/postPreserve/postPreserveList',
    name: 'postPList',
    meta: { tabName: '活动帖子维护' },
    component: () =>
      import(
        '@component/activeManagement/postManagement/postPreserve/postPreserveList'
      )
  },
  //活动管理-活动帖子管理-帖子维护  - 二级页面（点赞列表）
  {
    path: '/activeManagement/postManagement/common/upList/:id',
    name: 'postUpList',
    meta: { tabName: '活动帖子维护/点赞列表' },
    component: () =>
      import('@component/activeManagement/postManagement/common/upList')
  },
  //活动管理-活动帖子管理-帖子维护  - 二级页面（评论列表）
  {
    path: '/activeManagement/postManagement/common/commentList/:id',
    name: 'postCommentList',
    meta: { tabName: '活动帖子维护/评论列表' },
    component: () =>
      import('@component/activeManagement/postManagement/common/commentList')
  },
  //活动管理-活动帖子管理-帖子维护  - 三级页面（评论回复列表）
  {
    path: '/activeManagement/postManagement/common/commentBackList/:id',
    name: 'postCBackList',
    meta: { tabName: '活动帖子维护/评论回复列表' },
    component: () =>
      import(
        '@component/activeManagement/postManagement/common/commentBackList'
      )
  },
  //活动管理-活动帖子管理-我的发布
  {
    path: '/activeManagement/postManagement/postMine/postMineList',
    name: 'postMList',
    meta: { tabName: '活动帖子管理/我的发布' },
    component: () =>
      import('@component/activeManagement/postManagement/postMine/postMineList')
  },
  //活动管理-活动帖子管理-我的发布  - 二级页面（点赞列表）
  {
    path: '/activeManagement/postManagement/common/upList/:id',
    name: 'postMUpList',
    meta: { tabName: '活动帖子管理/我的发布/点赞列表' },
    component: () =>
      import('@component/activeManagement/postManagement/common/upList')
  },
  //活动管理-活动帖子管理-我的发布  - 二级页面（评论列表）
  {
    path: '/activeManagement/postManagement/common/commentList/:id',
    name: 'postMCommentList',
    meta: { tabName: '活动帖子管理/我的发布/评论列表' },
    component: () =>
      import('@component/activeManagement/postManagement/common/commentList')
  },
  //活动管理-活动帖子管理-我的发布  - 三级页面（评论回复列表）
  {
    path: '/activeManagement/postManagement/common/commentBackList/:id',
    name: 'postMCBackList',
    meta: { tabName: '活动帖子管理/我的发布/评论回复列表' },
    component: () =>
      import(
        '@component/activeManagement/postManagement/common/commentBackList'
      )
  },
  //活动管理-帖子内容审核
  {
    path: '/activeManagement/contentExamined/contentExaminedList',
    name: 'contentExaminedList',
    meta: { tabName: '活动帖子内容审核' },
    component: () =>
      import('@component/activeManagement/contentExamined/contentExaminedList')
  },
  // 活动管理-帖子评论审核
  {
    path: '/activeManagement/commentExamined/commentExaminedList',
    name: 'commentExaminedList',
    meta: { tabName: '活动帖子评论审核' },
    component: () =>
      import('@component/activeManagement/commentExamined/commentExaminedList')
  },
  // 活动管理-帖子评论审核 -二级页面（评论列表）
  {
    path: '/activeManagement/commentExamined/secondCommentList/:id',
    name: 'commentExaminedCommentList',
    meta: { tabName: '活动帖子评论列表' },
    component: () =>
      import('@component/activeManagement/commentExamined/secondCommentList')
  },
  // 活动管理-帖子评论审核 -三级页面（回复列表）
  {
    path: '/activeManagement/commentExamined/commentBackList/:id/:topicId',
    name: 'commentExaminedcommentBackList',
    meta: { tabName: '活动帖子回复列表' },
    component: () =>
      import('@component/activeManagement/commentExamined/commentBackList')
  },
  //~~~~~~~~~~~~~~~~~~ 活动管理 end~~~~~~~~~~~~~~
  //~~~~~~~~~~~~~~~~~~ 通知管理 begin~~~~~~~~~~~~~~
  //通知管理-通知管理
  {
    path: '/noticeManagement/noticeManage/actionNoticeList',
    name: 'actionNoticeList',
    meta: { tabName: '通知管理' },
    component: () =>
      import('@component/noticeManagement/noticeManage/actionNoticeList') // 通知管理
  },
  //通知管理-发布审核
  {
    path: '/noticeManagement/pubNotice/pubNoticeList',
    name: 'pubNoticeList',
    meta: { tabName: '发布审核' },
    component: () =>
      import('@component/noticeManagement/pubNotice/pubNoticeList') // 发布审核
  },
  //通知管理-运营审核
  {
    path: '/noticeManagement/opeNotice/opeNoticeList',
    name: 'opeNoticeList',
    meta: { tabName: '运营审核' },
    component: () =>
      import('@component/noticeManagement/opeNotice/opeNoticeList') // 运营审核
  },
  //通知管理- 消息清单
  {
    path: '/noticeManagement/message/messageList',
    name: 'messageList',
    meta: { tabName: '消息清单' },
    component: () => import('@component/noticeManagement/message/messageList') // 消息清单
  },
  //~~~~~~~~~~~~~~~~~~ 通知管理 end~~~~~~~~~~~~~~
  //~~~~~~~~~~~~~~~~~~ 标签管理 begin~~~~~~~~~~~~~~
  // 标签管理-标签分类管理
  {
    path: '/lableManage/tagCategory',
    name: 'tagCategory',
    meta: { tabName: '标签分类管理' },
    component: () => import('@component/lableManage/tagCategory')
  },
  // 标签管理-标签管理
  {
    path: '/lableManage/tagManage',
    name: 'tagManage',
    meta: { tabName: '标签管理' },
    component: () => import('@component/lableManage/tagManage')
  },
  // 标签管理-用户标签管理
  {
    path: '/lableManage/labelUser/labelList',
    name: 'labelUserList',
    meta: { tabName: '用户标签管理' },
    component: () => import('@component/lableManage/labelUser/labelList')
  },
  // 标签管理-用户标签管理 -二级页面（查看标签）
  {
    path: '/lableManage/labelUser/checkLabel/checkLabelList/:id',
    name: 'checkLabelList',
    meta: { tabName: '用户标签管理/查看标签' },
    component: () =>
      import('@component/lableManage/labelUser/checkLabel/checkLabelList')
  },
  //~~~~~~~~~~~~~~~~~~ 标签管理 end~~~~~~~~~~~~~~
  //~~~~~~~~~~~~~~~~~~ 人群管理 begin~~~~~~~~~~~~~~
  //人群管理
  {
    path: '/userManagement/crowdManage/crowdList',
    name: 'crowdList',
    meta: { tabName: '人群管理' },
    component: () => import('@component/userManagement/crowdManage/crowdList')
  },
  //人群管理-规则字典 - 二级页面
  {
    path: '/userManagement/crowdManage/crowdDictionary',
    name: 'crowdDictionary',
    meta: { tabName: '规则字典' },
    component: () =>
      import('@component/userManagement/crowdManage/crowdDictionary')
  },
  //~~~~~~~~~~~~~~~~~~ 人群管理 end~~~~~~~~~~~~~~
  //~~~~~~~~~~~~~~~~~~ 评论审核 begin~~~~~~~~~~~~~~
  // 评论审核 -回放视频评论审核
  {
    path: '/commentCheck/playbackCommentCheck/playCheckList',
    name: 'playbackCheckList',
    meta: { tabName: '回放视频评论审核' },
    component: () =>
      import('@component/commentCheck/playbackCommentCheck/playCheckList')
  },
  // 评论审核 -回放视频评论审核 - 二级页面（评论列表）
  {
    path: '/commentCheck/playbackCommentCheck/commentList/:id',
    name: 'playbackComment',
    meta: { tabName: '回放视频评论审核/评论列表' },
    component: () =>
      import('@component/commentCheck/playbackCommentCheck/commentList')
  },
  // 评论审核 -回放视频评论审核 - 三级页面（评论回复列表页）
  {
    path: '/commentCheck/playbackCommentCheck/commentBackList/:id',
    name: 'playbackCommentReply',
    meta: { tabName: '回放视频评论审核/评论回复列表' },
    component: () =>
      import('@component/commentCheck/playbackCommentCheck/commentBackList')
  },
  // 评论审核 -公开课评论审核
  {
    path: '/commentCheck/publicClassCommentCheck/publicCheckList',
    name: 'publicCheckList',
    meta: { tabName: '公开课评论审核' },
    component: () =>
      import('@component/commentCheck/publicClassCommentCheck/publicCheckList')
  },
  // 评论审核 -公开课评论审核 - 二级页面（评论列表）
  {
    path: '/commentCheck/publicClassCommentCheck/commentList/:id',
    name: 'publicComment',
    meta: { tabName: '公开课评论审核/评论列表' },
    component: () =>
      import('@component/commentCheck/publicClassCommentCheck/commentList')
  },
  // 评论审核 -公开课评论审核 - 三级页面（评论回复列表页）
  {
    path: '/commentCheck/publicClassCommentCheck/commentBackList/:id',
    name: 'publicCommentReply',
    meta: { tabName: '公开课评论审核/评论回复列表' },
    component: () =>
      import('@component/commentCheck/publicClassCommentCheck/commentBackList')
  },
  //~~~~~~~~~~~~~~~~~~ 评论审核 end~~~~~~~~~~~~~~
  //~~~~~~~~~~~~~~~~~~ 马甲管理 begin~~~~~~~~~~~~~~
  // 马甲管理
  {
    path: '/vestManagement/vestManage/vestList',
    name: 'vestManage',
    meta: { tabName: '马甲管理' },
    component: () => import('@component/vestManagement/vestManage/vestList')
  },
  //~~~~~~~~~~~~~~~~~~ 马甲管理 end~~~~~~~~~~~~~~
  //~~~~~~~~~~~~~~~~~~ 评论库管理 begin~~~~~~~~~~~~~~
  // 评论库管理
  {
    path: '/commentManagement/commentManage/commentList',
    name: 'commentManage',
    meta: { tabName: '评论库管理' },
    component: () =>
      import('@component/commentManagement/commentManage/commentList')
  },
  //~~~~~~~~~~~~~~~~~~ 评论库管理 end~~~~~~~~~~~~~~
  //~~~~~~~~~~~~~~~~~~ 互动消息管理 begin~~~~~~~~~~~~~~
  // 互动消息管理
  {
    path: '/interactManagement/interactManage/interactList',
    name: 'interactManage',
    meta: { tabName: '互动消息管理' },
    component: () =>
      import('@component/interactManagement/interactManage/interactList')
  },
  // 互动消息管理 - 二级页面（评论列表）
  {
    path: '/interactManagement/interactManage/commentList/:id',
    name: 'messageCommentList',
    meta: { tabName: '互动消息管理/评论列表' },
    component: () =>
      import('@component/interactManagement/interactManage/commentList')
  },
  // 互动消息管理 - 三级页面（回复评论列表）
  {
    path: '/interactManagement/interactManage/commentBackList/:id/:topicId',
    name: 'messageReplyList',
    meta: { tabName: '互动消息管理/评论回复列表' },
    component: () =>
      import('@component/interactManagement/interactManage/commentBackList')
  },
  //~~~~~~~~~~~~~~~~~~ 互动消息管理 end~~~~~~~~~~~~~~
  //~~~~~~~~~~~~~~~~~~ 分享语管理 begin~~~~~~~~~~~~~~
  // 分享语管理
  {
    path: '/shareWordManagement/shareManage/shareWordList',
    name: 'shareWordManage',
    meta: { tabName: '分享语管理' },
    component: () =>
      import('@component/shareWordManagement/shareManage/shareWordList')
  },
  //~~~~~~~~~~~~~~~~~~ 分享语管理 end~~~~~~~~~~~~~~
  //~~~~~~~~~~~~~~~~~~ 高危/严禁词库管理 begin~~~~~~~~~~~~~~
  // 高危/严禁词库管理-用户名严禁词
  {
    path: '/dangerWords/userDangerWords',
    name: 'userDangerWords',
    meta: { tabName: '用户名严禁词' },
    component: () => import('@component/dangerWords/userDangerWords')
  },
  // 高危/严禁词库管理-直播间弹幕严禁词
  {
    path: '/dangerWords/popUpDangerWords',
    name: 'popUpDangerWords',
    meta: { tabName: '直播间弹幕严禁词' },
    component: () => import('@component/dangerWords/popUpDangerWords') // 直播间弹幕严禁词
  },
  // 高危/严禁词库管理- 内容/评论/回复高危词
  {
    path: '/dangerWords/contentDangerWords',
    name: 'contentDangerWords',
    meta: { tabName: '内容/评论/回复高危词' },
    component: () => import('@component/dangerWords/contentDangerWords') // 内容/评论/回复高危词
  },
  // 高危/严禁词库管理- 内容/评论/回复严禁词
  {
    path: '/dangerWords/contentProhibitWords',
    name: 'contentProhibitWords',
    meta: { tabName: '内容/评论/回复严禁词' },
    component: () => import('@component/dangerWords/contentProhibitWords') // 内容/评论/回复严禁词
  },
  //~~~~~~~~~~~~~~~~~~ 高危/严禁词库管理 end~~~~~~~~~~~~~~
  //~~~~~~~~~~~~~~~~~~ 作业抄袭投诉管理 begin~~~~~~~~~~~~~~
  //作业抄袭投诉管理
  {
    path: '/jobComplain/index',
    name: 'jobComplain',
    meta: { tabName: '作业抄袭投诉管理' },
    component: () => import('@component/jobComplain/index')
  },
  //~~~~~~~~~~~~~~~~~~ 作业抄袭投诉管理 end~~~~~~~~~~~~~~
  {
    path: '/system/notice',
    name: 'notice',
    meta: { tabName: '通知公告' },
    component: () => import('@component/system/notice') // 通知公告
  },
  {
    path: '/operate/task/taskManage',
    name: 'taskManage',
    meta: { tabName: '运营管理/任务管理' },
    component: () => import('@component/operate/task/taskManage') // 任务管理
  },
  {
    path: '/operate/notice/noticeManage',
    name: 'sysNoticeManage',
    meta: { tabName: '运营管理/通知管理' },
    component: () => import('@component/operate/notice/noticeManage') // 通知管理
  },

  // 任务管理
  {
    path: '/publish/task/taskManage',
    name: 'publishTaskManage',
    meta: { tabName: '发布管理/任务管理' },
    component: () => import('@component/publish/task/taskManage') // 任务管理
  },
  // 通知管理
  {
    path: '/publish/notice/noticeManage',
    name: 'publishNoticeManage',
    meta: { tabName: '发布管理/通知管理' },
    component: () => import('@component/publish/notice/noticeManage') // 通知管理
  },

  // 内容标签管理
  {
    path: '/lableManage/contentTags/contentList',
    name: 'contentTagList',
    meta: { tabName: '内容标签管理' },
    component: () => import('@component/lableManage/contentTags/contentList')
  },
  {
    path: '/lableManage/contentTags/lifeContents/lifeContentList/:id',
    name: 'lifeContents',
    meta: { tabName: '生活内容标签' },
    component: () =>
      import('@component/lableManage/contentTags/lifeContents/lifeContentList') // 内容标签管理/生活内容标签
  },

  // 问卷调查活动管理
  {
    path: '/behaviorManagement/eventManagement/questionnaire/questionnaireList',
    name: 'questionnaireList',
    meta: { tabName: '问卷调查活动管理' },
    component: () =>
      import(
        '@component/behaviorManagement/eventManagement/questionnaire/questionnaireList'
      ) // 问卷调查活动管理/列表页
  },
  {
    path:
      '/behaviorManagement/eventManagement/questionnaire/questionnaireDetails',
    name: 'viewDetails',
    meta: { tabName: '问卷调查活动管理/查看详情' },
    component: () =>
      import(
        '@component/behaviorManagement/eventManagement/questionnaire/questionnaireDetails'
      ) // 问卷调查活动管理/查看详情
  },
  {
    path: '/behaviorManagement/eventManagement/questionnaire/addQuestionnaire',
    name: 'addQuestionnaire',
    meta: { tabName: '创建活动' },
    component: () =>
      import(
        '@component/behaviorManagement/eventManagement/questionnaire/addQuestionnaire'
      ) // 问卷调查活动管理/新增页
  },
  // 属性管理
  {
    path: '/behaviorManagement/attributeManage/attributeList',
    name: 'attributeList',
    meta: { tabName: '行为管理/属性管理' },
    component: () =>
      import('@component/behaviorManagement/attributeManage/attributeList') // 属性管理列表页
  },
  // 404
  {
    path: '*', // 页面不存在的情况下会跳到404页面
    name: 'notFoundInRight',
    meta: { tabName: '404' },
    component: () => import('@component/error-page/404.vue')
  }
]*/

// 二级页面路由（无权限控制）
let baseR = [
  /* 官方征集自评活动 */
  {
    path: '/official/createActivities',
    name: 'wh:activeManagement:selfAssessment:createActivities',
    meta: { title: '新增页面（新增页面）（二级页面）' },
    component: () =>
      import('@component/activeManagement/selfAssessment/createActivities')
  },
  {
    path: '/official/editActivities',
    name: 'wh:activeManagement:selfAssessment:editActivities',
    meta: { title: '编辑活动（新增页面）（二级页面）' },
    component: () =>
      import('@component/activeManagement/selfAssessment/createActivities')
  },
  {
    path: '/official/checkActivities',
    name: 'wh:activeManagement:selfAssessment:checkActivities',
    meta: { title: '查看详情（新增页面）（二级页面）' },
    component: () =>
      import('@component/activeManagement/selfAssessment/createActivities')
  },
  /* 投票活动 */
  {
    path: '/votingActivity/createActivities',
    name: 'wh:activeManagement:votingActivity:createActivities',
    meta: { title: '创建活动页面（二级页面）' },
    component: () =>
      import('@component/activeManagement/votingActivity/createActivities')
  },
  {
    path: '/votingActivity/editActivities',
    name: 'wh:activeManagement:votingActivity:editVotingActivities',
    meta: { title: '编辑活动页面（二级页面）' },
    component: () =>
      import('@component/activeManagement/votingActivity/createActivities')
  },
  {
    path: '/votingActivity/checkActivities',
    name: 'wh:activeManagement:votingActivity:checkVotingActivities',
    meta: { title: '查看详情（二级页面）' },
    component: () =>
      import('@component/activeManagement/votingActivity/createActivities')
  },
  /* 排行榜活动 */
  {
    path: '/rankingList/createActivities',
    name: 'wh:activeManagement:rankingList:createActivities',
    meta: { title: '创建活动页面（二级页面）' },
    component: () =>
      import('@component/activeManagement/rankingList/createActivities')
  },
  {
    path: '/rankingList/editActivities',
    name: 'wh:activeManagement:rankingList:editRankingActivities',
    meta: { title: '编辑活动页面（二级页面）' },
    component: () =>
      import('@component/activeManagement/rankingList/createActivities')
  },
  {
    path: '/rankingList/checkActivities',
    name: 'wh:activeManagement:rankingList:checkRankingActivities',
    meta: { title: '查看详情（二级页面）' },
    component: () =>
      import('@component/activeManagement/rankingList/createActivities')
  },
  /* 优惠券管理查看明细 */
  {
    path: '/couponManagement/checkDetail',
    name: 'wh:couponManagement:secondList',
    meta: { title: '优惠券管理（二级页面）' },
    component: () =>
      import('@component/intergralManagement/couponManagement/secondList')
  },
  /* 商品活动管理 */
  {
    path: '/goodsActivityManagement/createActivity',
    name: 'wh:goodsActivity:createGoodsActivity',
    meta: { title: '新建活动' },
    component: () => import('@component/goodsActivityManagement/createActivity')
  },
  {
    path: '/goodsActivityManagement/editActivity',
    name: 'wh:goodsActivity:editGoodsActivity',
    meta: { title: '编辑活动' },
    component: () => import('@component/goodsActivityManagement/editActivity')
  },
  {
    path: '/userGroup/importCreateGroup',
    name: 'wh:newUserGroup:DP',
    meta: { title: '导入创建分组' },
    component: () => import('@component/userGroup/importCreateGroup')
  },
  {
    path: '/userGroup/ruleCreateGroup',
    name: 'wh:newUserGroup:RULE',
    meta: { title: '规则创建分组' },
    component: () => import('@component/userGroup/ruleCreateGroup')
  },
  // {
  //   path: '/goodsActivityManagement/receiveRecord',
  //   name: 'wh:goodsActivity:receiveRecord',
  //   meta: { title: '领取记录' },
  //   component: () => import('@component/goodsActivityManagement/receiveRecord')
  // },
  /* 页面不存在的情况下会跳到404页面 */
  {
    path: '*',
    name: 'notFoundInRight',
    meta: { title: '404' },
    component: () => import('@component/error-page/404.vue')
  }
]
const router = new Router({
  // base: window.__POWERED_BY_QIANKUN__ ? '/yunying' : '/',
  base: qiankunWindow.__POWERED_BY_QIANKUN__ ? '/yunying' : '/',
  routes: baseR,
  mode: 'history' // 去除#号
})
export default router
